<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>天气网</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        a {
            text-decoration: none;
        }
        
        li {
            list-style: none;
        }
        
        .content {
            margin: auto;
            width: 96%;
            height: 1000px;
            text-align: center;
        }
        
        .top {
            display: flex;
            height: 405px;
        }
        
        .top>li {
            display: flex;
            flex-direction: column;
            align-content: space-around;
            background-color: #768999;
            border: 1px solid #ccc;
            border-radius: 40px;
        }
        
        .top>li:nth-child(1) {
            flex: 2;
            background-color: #bac4cc;
        }
        
        .top>li:nth-child(2) {
            flex: 3;
        }
        
        .top>li:nth-child(3) {
            flex: 1;
        }
        
        .top>li:nth-child(1)>img {
            opacity: 0.5;
        }
        
        .bottom {
            margin-top: 30px;
            display: flex;
        }
        
        .bottom>li:nth-child(1) {
            flex: 2;
        }
        
        .bottom>li:nth-child(2) {
            flex: 3;
        }
        
        .bottom>li:nth-child(3) {
            flex: 1;
        }
        
        .add {
            opacity: 1!important;
            animation: rotate 2s linear!important;
        }
        
        @keyframes rotate {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }
    </style>
    <script>
        window.addEventListener('load', function() {
            var li1 = document.querySelector('li');
            var li1img = li1.querySelector('img');
            li1.addEventListener('mouseenter', function() {
                li1img.classList.add('add');
            });
        });
    </script>
</head>

<body>
    <div class="content">
        <ul class="top">
            <li>
                <p>今天</p>
                <img src="taiyang.svg" alt="">
                <p>晴天</p>
            </li>
            <li>
                <p>明天</p>
                <img src="taiyang.svg" alt="">
                <p>阴天</p>
            </li>
            <li>
                <p>后天</p>
                <img src="taiyang.svg" alt="">
                <p>小雨</p>
            </li>
        </ul>
        <ul class="bottom">
            <li>
                <p>今天天气晴</p>
                <p>气温35摄氏度</p>
                <p>出门注意防晒</p>
            </li>
            <li>
                <p>今天天气晴</p>
                <p>气温35摄氏度</p>
                <p>出门注意防晒</p>
            </li>
            <li>
                <p>今天天气晴</p>
                <p>气温35摄氏度</p>
                <p>出门注意防晒</p>
            </li>
        </ul>
    </div>
</body>

</html>